﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TagChimp;

namespace TagChimpConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            TagChimpClient client = new TagChimpClient();
            try
            {
                var results = client.SearchTelevisionExact(null, null, 1, 1);
                Console.WriteLine("{0} results", results.TotalResults);
                foreach (var movie in results.Movies)
                {
                    Console.WriteLine(movie.MovieTags.MovieInfo.Title);
                }
            }
            catch (TagChimpException e)
            {
                Console.WriteLine(e.Message);
                Console.WriteLine(e.RequestUrl);
                Console.WriteLine(e.XmlResponse);
            }

            //var show = client.FindById(5180);
            //if (show != null)
            //    Console.WriteLine(show.MovieTags.TelevisionInfo.ShowName);

            Console.ReadLine();
        }
    }
}